<?php

namespace App\Controller;

use Think\HxCall;

class WebController extends Controller {
	public function iosdown(){
		$model = M('Version');
		$field = 'ios_plist as plist';
		$list = $model->field($field)->find();
		$this->assign('list',$list);
		$this->display();
	}

	public function test()
	{
		$hx_config = C('HX_CONFIG');
		$hx_class = new HxCall($hx_config);

		$user = M('user');
		$map['id'] = 8;
		$hx_user = $user->field('id as username,pass as password')->where($map)->find();

		$res = $hx_class->createUsers($hx_user);
		dump($res);
	}
}